package com.sap.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sap.domain.SysUserRole;
import com.sap.domain.User;
import com.sap.feign.UserFeign;
import com.sap.service.SysUserRoleService;
import com.sap.mapper.SysUserRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author luoh6
* @description 针对表【sys_user_role(用户和角色关联表)】的数据库操作Service实现
* @createDate 2025-05-12 15:33:57
*/
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole>
    implements SysUserRoleService{

    @Autowired
    private UserFeign userFeign;

    @Override
    public User getUserInfo() {
        User userById = userFeign.getUserById(2L);
        return userById;
    }
}




